<template>
    <app-home>
        <div slot="main">
            <app-updata :formdata="data"></app-updata>
        </div>
    </app-home>
</template>
<script>
import Home from "@/views/home";
import Updata from "./components/userDetail";
    export default {
        data(){
            return{
                data:""
            }
        },
        components: {
            "app-home": Home,
            "app-updata": Updata
        },
        mounted(){
            this.$store.dispatch("UserListId",this.$route.params.id).then(()=>{
                this.data=this.$store.state.user.listId;
            })
        }
    }
</script>